<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
	<h2>Bookmark</h2>
	
	<a href="add">Add Bookmark</a> | <a href="list">Refresh</a>
	
	<table border="1">
		<thead>
			<tr>
				<td>Name</td>
				<td>URL</td>
				<td>Created Date</td>
				<td>Action</td>
			</tr>
		</thead>

		<c:forEach items="${bookmarkList}" var="bookmark">
			<tr>
			  <td><a href="update/${bookmark.keyAsString}">${bookmark.name}</a></td>
			  <td>${bookmark.url}</td>
			  <td>${bookmark.created}</td>
			  <td>
			  	<a href="delete/${bookmark.keyAsString}">Delete</a>
		      </td>
			</tr>
		</c:forEach>
		
     
	</table>
	
</body>
</html>